﻿using System.Collections;
using System.Collections.Generic;
using com.guojin.mj.net.message.game;
using UnityEngine;
using com.guojin.core.io.message;

public class BetPageController : MonoBehaviour
{
    private static BetPageController instance;
    public static BetPageController GetInstance()
    {
        return instance;
    }
    void Awake()
    {
        instance = this;
    }

    public int betType;
    public int locationIndex;
    private int betOrCallScore;
    private PlayCardRet blir;


    public void ShowBetPageAndDownTime()
    {
        ShowBetPage();
        ShowDownTime();
    }


    private void ChangeUserBetState()
    {
        if (betType == 1)
        {
            GameRoomModel.GetInstance().playerDic[locationIndex].betState = 1;
        }
        else if (betType == 2)
        {
            GameRoomModel.GetInstance().playerDic[locationIndex].betState = 3;
        }
    }

    public void CheckShowBetElement(PlayCardRet blir)
    {
      
    }

    private void ShowBetPage()
    {
        UIManager.ChangeUI(UIManager.PageState.BetPage, (GameObject obj) =>
        {
            obj.GetComponent<BetPage>().InformationSetting();
        });
    }


    private void ShowDownTime()
    {
      
    }
}
